<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script>
    for(var n=1;n<=100;n++){
        if(n==1){
            continue;
        }else{
            var flag=true;
            for(var j=2;j<n;j++){
                if(n%j==0){
                    flag = false;

                }
            }
        }
        if(flag){
            document.write("100以内的素数有："+n+'<br/>');
        }
    }

</script>
<script>
    for (var red = 0; red <= 25; ++red) {
        for (var white = 0;  white <= 31; ++white) {
            for (var black = 0; black <= 28; ++black) {
                if (((red + white) == 25) && ((white + black) == 31) && ((red + black) == 28)) {
                    document.write('红球：' + red + '，白球：' + white + '，黑球：' + black);
                }
            }
        }
    }
</script>
</body>
</html>
